package com.guomao.democ;

public class MyThread extends Thread {


    public MyThread(String name) {
        super(name);
    }

    public MyThread() {
        super();
    }

    public void run() {
        for (int i = 1; i <= 1000; i++) {
            String name = this.getName();
            System.out.println(name + ":" + i);
        }
    }
}
